<?php
/** @var EscuelaController $this */
/** @var Escuela $model */
$this->breadcrumbs = array(
    'Escuelas' => array('index'),
    Yii::t('AweCrud.app', 'Manage'),
);

$this->menu = array(
    array('label' => Yii::t('AweCrud.app', 'List') . ' ' . Escuela::label(2), 'icon' => 'list', 'url' => array('index')),
    array('label' => Yii::t('AweCrud.app', 'Create') . ' ' . Escuela::label(), 'icon' => 'plus', 'url' => array('create')),
);
?>

<fieldset>
    <legend>
        <?php echo Yii::t('AweCrud.app', 'Manage') ?> <?php echo Escuela::label(2) ?>    </legend>


    <?php
    $this->widget('bootstrap.widgets.TbGridView', array(
        'id' => 'escuela-grid',
        'type' => 'striped condensed',
        'dataProvider' => $model->search(),
        'filter' => $model,
        'columns' => array(
           
            'id',
            'nombre',
             array(
                'header' => 'logo',
                'type' => 'html',
                'value' => '$data->imagen ? Chtml::image(Yii::app()->baseUrl."/uploads/images/".$data->imagen,"",array("style"=>"width:25px;height:25px;")) : "<span class=label >No asignado</span>" ',
            ),
            array(
                'class' => 'bootstrap.widgets.TbButtonColumn',
            ),
        ),
    ));
    ?>
</fieldset>